package com.yike.product.api.service;

import com.yike.product.api.service.hystrix.GoodsFeignHystrix;
import com.yike.product.api.vo.GoodsFeignVo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * @Author gfs
 * @Date 2020/8/16 9:45
 **/
@FeignClient(value = "product-service", fallback = GoodsFeignHystrix.class)
public interface GoodsFeignService {

    @ApiOperation(value = "商品列表")
    @GetMapping("/feign/goods/list")
    List<GoodsFeignVo> list(@RequestParam("goodsIds") Set<Long> goodsIds);
}
